package com.coderman.dto;

/**
 * Created by ${fanchunshuai} on 2017-7-10.
 *
 * @version: V1.0
 * @Desc: 表结构描述
 * @Copyright (c) 2017 58到家-版权所有
 */
public class ColumnDto {
    /**
     * 字段名称
     */
    private String name;
    /**
     * 字段类型
     */
    private String type;
    /**
     * 字段长度
     */
    private int length;
    /**
     * 字段描述
     */
    private String desc;

    /**
     * 是否是自增主键
     * 0:不是
     * 1:是
     */
    private int autoKey;

    /**
     *
     * 字段默认值
     */
    private String defaultV;

    /**
     * 是否可以为null
     */
    private String isNull;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getAutoKey() {
        return autoKey;
    }

    public void setAutoKey(int autoKey) {
        this.autoKey = autoKey;
    }

    public String getDefaultV() {
        return defaultV;
    }

    public void setDefaultV(String defaultV) {
        this.defaultV = defaultV;
    }

    public String getIsNull() {
        return isNull;
    }

    public void setIsNull(String isNull) {
        this.isNull = isNull;
    }

    @Override
    public String toString() {
        return "ColumnDto{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", length=" + length +
                ", desc='" + desc + '\'' +
                ", autoKey=" + autoKey +
                ", defaultV='" + defaultV + '\'' +
                ", isNull='" + isNull + '\'' +
                '}';
    }
}
